package ink.carnation.imtalk.util;

/**
 * 登陆认证使用到的 TOKEN REFRESH_TOKEN 前缀常量
 */
public enum TokenCacheKey {
    USER_TOKEN("IMTalk::user::token::"),
    USER_REFRESH_TOKEN("IMTalk::user::refreshToken::");


    private String value;

    TokenCacheKey(String s) {
        this.value = s;
    }


    public static String getUserTokenKey(Integer userId){
        return USER_TOKEN.value+userId;
    }
    public static String getUserRefreshTokenKey(Integer userId){
        return USER_REFRESH_TOKEN.value+userId;
    }
}
